package com.baizhiedu.basic;

/**
 * ClassName: UserServiceImpl
 * Description:
 * Date: 2022/11/18 PM 2:21:53
 * <p>
 * project: spring5
 * package: org.baizhiedu.basic
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class UserServiceImpl implements UserService {
    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void register(User user) {
        userDao.save(user);
    }

    @Override
    public void login(String name, String password) {
        userDao.queryUserByNameAndPassword(name, password);
    }
}
